package com.example.entity.vo.request;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @Author: shenjianZ
 * @Date: 2024/4/20 上午10:40
 * @Description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DetailsSaveVo {

    @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]+$")
    @Length(min = 2, max = 10)
    String username;
    @Min(0)
    @Max(1)
    Integer gender;
    @Pattern(regexp = "^1[3-9]\\d{9}$")
    String phone;
    @Pattern(regexp = "^\\d{5,11}$")
    String qq;
    @Length(max = 20)
    @Pattern(regexp = "^[a-zA-Z0-9_-]{3,20}$")
    String wx;
    @Length(max = 200)
    String desc;
}